package ead.cs.service.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;

@Component
public class SMSConfig {

    @Value("${sms.host:null}")
    private String smsHost;

    public String getSmsHost() {
        return smsHost;
    }

    public void setSmsHost(String smsHost) {
        this.smsHost = smsHost;
    }

    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
